package com.xunqi.ad.service;

import com.xunqi.ad.exception.AdException;
import com.xunqi.ad.form.*;
import com.xunqi.ad.vo.*;

/**
 * @Description:
 * @Created with IntelliJ IDEA.
 * @author: 夏沫止水
 * @createTime: 2020-04-30 15:14
 **/
public interface IAdUnitService {

    /**
     * 创建推广单元
     * @param form
     * @return
     * @throws AdException
     */
    ResponseVo<AdUnitResponseVo> createUnit(AdUnitForm form) throws AdException;


    /**
     * 创建关联关键词限制信息
     * @param form
     * @return
     * @throws AdException
     */
    ResponseVo<AdUnitKeywordResponseVo> createUnitKeyword(AdUnitKeywordForm form) throws AdException;


    /**
     * 创建关联兴趣限制信息
     * @param form
     * @return
     * @throws AdException
     */
    ResponseVo<AdUnitItResponseVo> createUnitIt(AdUnitItForm form) throws AdException;


    /**
     * 创建关联推广单元地域限制信息
     * @param form
     * @return
     * @throws AdException
     */
    ResponseVo<AdUnitDistrictResponseVo> createUnitDistrict(AdUnitDistrictForm form) throws AdException;

    /**
     * 创建创意表与推广单元管理的信息
     * @param form
     * @return
     * @throws AdException
     */
    ResponseVo<CreativeUnitResponseVo> createCreativeUnit(CreativeUnitForm form) throws AdException;
}
